package com.zking.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTimeUtils {
	
	private static String timeStr;
	
	/**
	 * 获取当前时间字符串
	 * @return
	 */
	public static String getTimeStr(){
        Date date = new Date();
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        timeStr = sf.format(date);
        return timeStr;
	}
}
